1
jpco_122122
javascript has been successfully added!

I had edit the menu on XOOPS adding quite javascript and im successful with this. I had created a popup menu,here's the script..I want to share it with anybody. Thus anyone knows how to edit this code so that it wont popup and it will open in the same window again?


<!-- end module menu loop -->

<a class="menuMain" href="javascript:window.open('http://im-server/muntinlupa/', 'popup','status=no,menubar=no,toolbar=no,width=1020,height=760')";> CrimeMapping</a>


</td>

2
stiffo
Re: javascript has been successfully added!
  • 2004/11/20 22:19

  • stiffo

  • Just popping in

  • Posts: 9

  • Since: 2004/9/13


I am not sure what your are trying to accomplish but if you want to open a new page in the same window try using:
this.document.location or this.location or document.location... don't remember the exact syntax...

Thanx

3
coopersita
Re: javascript has been successfully added!

Try
document.location.replace("new address here");

the only problem is that if people click the back button will get two pages back (the new page replaces the old page in the list of pages visted).

Login

Who's Online

236 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits