javascript:history in a post is replaced by javascript<b></b>:history

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fangorn
    New Member
    • Jul 2005
    • 17
    • 3.0.7

    javascript:history in a post is replaced by javascript<b></b>:history

    Hello all,

    I wrote a post with a link in it to the previous page :
    HTML Code:
    <A HREF="javascript:history.back()">
    And it gets replaced by :
    HTML Code:
    <A HREF="javascript<b></b>:history.back()">
    Apparently it's only the "javascript:" part that gets replaced by "javascript<b></b>:"

    Does anyone know if there is a way around this ? Either to avoid the insertion of <b></b> or a different way to write a history.back link

    Thank you,


    - Jeff
  • devoslack
    New Member
    • Jun 2007
    • 1

    #2
    I had the same issue. One resolution was to replace the colon with ASCII code for colon.

    The colon seems to cause an issue, so by using the ASCII tag for colon, we kind of trick vB into thinking the colon is really there.

    Comment

    • porcupine73
      Member
      • Nov 2008
      • 31
      • 3.8.x

      #3
      Hm, I just had this same issue, but replacing with the escaped version of the colon still didn't work right. I ended up using the 'onhover' solution (got this tip by viewing the vbulletin output )

      Code:
      <a href="[URL]http://ozscience.com/forums/subaru-engines-faq/30-where-engine-oil-leaking-my-subaru.html[/URL]#" onclick="history.back(1); return false;">

      Comment

      Related Topics

      Collapse

      Working...