• 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.

Java Script Help

Jator

Golden Member
I am trying to make a call to a function by using a link.

However, I can only do this from a Push Button right now and would like to use a link instead.

THis is what I have tried to do:

<a href=&quot;winopen()&quot;>Day Stats (PHP)</a></small></font></p>

However, this tries to open up http://jator/2y/net/winopen()

Not what I want. Anyone who can show me my error?

Thanks.
 
You have to put a &quot;javascript:&quot; in the url, I think. It'd be like this:

<a href=&quot;javascript:winopen()&quot;>Day Stats (PHP)</a></small></font></p>
 
If you dont want that flicker try this.... it will also lighten your code time in half!!

<script language=&quot;JavaScript&quot;>
function window_open(filename, x, y)
{
windowops = eval(&quot;'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=&quot; + x + &quot;,height=&quot; + y + &quot;'&quot😉;
window.open(filename, 'New1', windowops);
return;
}
</script>



then for the link tag do this..

<a href=&quot;javascript:window_open('whatever.php', 450, 350)&quot;>text link(php)</a>


btw the 450,350 is the window size set in pixels.
😎
 
Back
Top