Announcement

Collapse
No announcement yet.

Javascript pop ups not working.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript pop ups not working.

    Im trying to add a link that pops up a javascript generated pop up window, I know the javascript is coded correctly, thats not the issue. Everything is properly in place but vbulletin is just parsing the link weird and ruining it.

    And HTML is switched on in forum settings.

    For example I have code like this:

    Code:
     <A HREF="javascript:popUp('http://test')">Test</A>
    Instead vbulletin creates a link to:
    Code:
    http://www.smashcash.com.au/home/javascript%3Cb%3E%3C/b%3E:popUp('http://test')

  • #2
    That's the wrong code. It needs to be like this:

    Code:
    <a href="http://www.link.com/" onClick="window.open('http://www.link.com/','mywindow','width=400,height=200')">TEXT</a>

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X