Quoted onclick function? How to correctly markup it

Posted Jan 01, 1970 12:00 AM

I'm working on this sharing window but i don't know how to correctly write it!

I want to do something like this whith: "link","title",200,200

var link = '"link","title",200,200'
<div onclick="popup("link","title",200,200)"

For more info see http://jsfiddle.net/Z9AUH/1/

Real demo http://contat.eu/facebook/vtour/

Similar Topic Questions

Add an "onclick" attribute to login submit button in Drupal 7

I have a drupal proyect inside another page as an iframe and I want to add an attribute to the login submit button that redirect the top url to an custom url like this: top.location.href = 'somepage.html'; I'm trying this: function...

Posted Jan 09, 2014 4:14 AM

Why different effect in differnt browser after "onclick"

I want to enable the btn1 and disable btn2 when the page loaded. I input value in txtbox1 then clicking btn1 ,then btn1 disable and enable btn2. If I clicking btn2, btn2 disable also. $value= $_POST['tb1'.$id]; echo '<form name="f1" method="POST" action="">'; echo '<input...

Posted Jan 15, 2014 8:57 AM

Div with "onclick" function to have in browser same options like <a> tag

Can I make my <div> tag with onclick() function to have in browser same options like <a> tag ? I need some options like "open in new window", "copy link location" ......

Posted Jan 17, 2014 9:26 AM

"onclick" event is not working after one excution

Javascript: var hit = document.getElementById("click"); var bltX = 0; hit.onclick = function(){ doSomething(); } function doSomething() { bltX +=20; ctx.drawImage(blt,bltX,50, chop1.width, chop1.height); if(bltX < 620){ requestAnimationFrame(doSomething); } } In the above example "doSomething" function excute for the first "click" event...

Posted Jan 17, 2014 11:21 AM

Trying to get "é" character to print out correctly

I am trying to take the rss/xml feed from itunes and I have noticed that artist and songs that have special charters like é like in beyoncé is showing as Beyoncé I have tried the following to get it to show...

Posted Jan 30, 2014 8:24 AM

Using "if" inside an "onclick

Is it possible to use a "if" function inside an "onclick". The reason why I have to do this is because this "onclick" is used inside an application that I do not control the code, the only thing I can control...

Posted Feb 02, 2014 1:49 AM

Windows form application clicking an "onclick=return"

So im trying to make an script that does the BFH (in a game) auto but when it clicks on the sumbit button the webbrowser opens up an confirm box (code element inspecting showed down). So how do i make...

Posted Feb 27, 2014 9:30 AM

What's the correct markup to use a figure element with an img and a figcaption as a link?

So far i've used the following (just a rough outline): <figure> <a> <img> <figcaption></figcaption> </a> </figure> On validation i've got now the following error: ...

Posted Apr 03, 2014 6:30 AM

"onClick" on external .js file

I'm new to Javascript and I'm triyng to perform an onClick event on an image in a external .js file using the html tag <script type="text/javascript" src="embed.js"> The code inside "embed.js" is the following var image1=new Image(); image1.src="img.gif" document.write('<IMG src='+image1.src+'>'); $(document).ready( function() { $(image1).click( function() { ...

Posted Apr 08, 2014 11:41 AM

Why " onclick='submit()' " does not validate the form?

Why "<button onclick="submit()"> Submit</button>" don't work for validations? and why "<input type="submit" value="submit">" works? <form action="#" method="post"> <input type="text" name="val" required><br> <button onclick="submit()">Submit</button> ...

Posted Apr 23, 2014 3:13 AM

When input type="image", onclick action was triggered by hitting enter from another input field

In my code, I made a JavaScript function which will delete the current row from a table. Then in HTML I put that function into an 'input' element which will trigger the function in an 'onclick' action. Everything works fine...

Posted Apr 30, 2014 11:30 AM

Bizarre: Type or namespace not found "are you missing assembly reference" while all references are correct

I am trying to use MSBuildWorkspace class . I have all assembly references in my project. When I open the reference in object browser, I see the namespace and the class I am trying to use. But in my following...

Posted May 12, 2014 8:36 AM

Type or namespace not found "are you missing assembly reference" while all references are correct

I am trying to use MSBuildWorkspace class . I have all assembly references in my project. When I open the reference in object browser, I see the namespace and the class I am trying to use. But in my following...

Posted May 12, 2014 8:36 AM

Check constructor of variable and edit its "onclick"

My Code : /* NAME : SELECTOR.JS */ function $(attr){ // Removed space in front of the variable while(attr.charAt(0) == " "){ attr = attr.substr(1); ...

Posted May 20, 2014 10:04 AM

Unbind "click" for "onclick" attribute

I have the following html element: <span class="btn btn-mini btn-primary row-remove" onclick="someFunction(param1, param2)"> <i>Remove</i> </span> When I do something else, I am disabling those buttons on the page: $(".row-remove").attr("disabled", true); The issue is, if you click the disabled button it still fires the...

Posted May 22, 2014 3:35 AM

PHP and MYSQL cannot display double quotes properly when also displaying ñ correctly

I am having issues inserting double quotes into my mysql database. I had to change headers to UTF8 since I will be displaying Spanish (ñ, accents). I run a page (PHP) to insert a message in my database: header('Content-Type: text/html; charset=utf-8'); $newMessage = $_POST['newChatMessage']; $currentUser...

Posted Jun 12, 2014 4:33 AM

Inline "onclick" function is not called

I have string html and will be append : var str = "<fieldset><p class='error' id='pMessage'>You was login sucessful.</p><a id='btnLogout' onclick='logoutAccount('nhattruong@gmail.com');' href='#'>Logout</a></fieldset>"; $("#divLogin").html(str); And method event function logoutAccount(mail) { alert(mail); } My problem is : a tag event click is not working ?...

Posted Jun 17, 2014 4:06 AM

Uncaught TypeError: undefined is not a function for "onclick="this.firstChild.play()"

Why am I getting "Uncaught TypeError: undefined is not a function" error: <div class="mainBox">test Text&nbsp;<a onclick="this.firstChild.play()"> <audio src="sounds/audio1.mp3"></audio> <img class="audioPlayer" src="images/play.jpg"></a> </div> ...

Posted Jun 22, 2014 3:59 AM

Double div "container body-content" tag doesn't align correctly in Bootstrap 3.0

Why using twice the <div class="container body-content"> tag, I got an incorrect alignment on the right side of the page? The text goes beyond the right border. Here is a live version of my page: http://www.bootply.com/xjINCTXza4 Here is the HTML, thanks. <div class="container body-content"> ...

Posted Jun 26, 2014 12:21 PM

 
 
Email:

Username:

Password:


Register

Username:

Password:

Login


Forgot Password
Reset my password!