• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need Help With Simple JavaScript Code.... (Please Help ASAP)

SaturnX

Diamond Member
Hey,

The code I need is really simple.. though I'm having difficulties.

This is what I want to do, I want to call a link like so:

<a href="javascript:ssopen(game)">Open Link</a>

And what I need it to do is add whatever is in the brackets to a set web address, so the final output and navigation is to

www.website.com/game

Any help would be greatly appreciated.

--Mark



 
<html>
<head>
<script>
function ssopen ( dir )
{
document.location = "http://idvanx.com/" + dir;
}
</script>
</head>
<body>

<a href="javascript:ssopen('cal')">link</a>
</body>
</html>
 
Back
Top