html - Using an anchor href in a javascript onclick -


I have an href that I want to use on an anchor in an onclick method.

Here's an anchor:

  & lt; A href = "http://www.google.com" onclick = "videotrack analog ('best practice 3', 'www.google.com');" & gt; & Lt; IMG alt = "Best Practice 3" src = "Tig / BestPrice 3.jpg" style = "width: 236px; height: 157px" /> & Lt; / A & gt; & Lt; / TD & gt;  

and the code clicked here is:

  function video trackcan (videon, file name, file) {frmVideoTrackNLog.videoname.value = videoname; FrmVideoTrackNLog.nextpagename.value = filename; FrmVideoTrackNLog.submit (); Window.open (file, 'video', 'height = 200, width = 200, left = 190, top = 110, resizable = yes, scrollbar = yes, toolbar = no, menubar = no, location = no, Directory = no, position = yes'); }  

The idea of ​​transferring URLs to href in the third parameter in the function is it possible?

  videotrack analog .href);  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -