By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,626 Members | 1,929 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,626 IT Pros & Developers. It's quick & easy.

popup window in verticle menu

omerbutt
100+
P: 638
hi i am making a css verticle menu with <ui>and <li> and i want to open a popup window hen i click on a link lets say if this is the link

[HTML]<ui>
<li><a href="AddNewRecord.asp">Add New Record</li>
</ui>[/HTML]
this will redirect the page to AddNewRecord.asp but what will i do if i want to open a popup window for that page "AddNewRecord.asp"
Nov 24 '07 #1
Share this Question
Share on Google+
4 Replies


gits
Expert Mod 5K+
P: 5,390
hi ...

first add a closing </a> and next use the onclick handler of the anchor-tag to call a function that uses the window.open(); method to open a popup window ... example:

Expand|Select|Wrap|Line Numbers
  1. function open_window(url) {
  2.     window.open(url, 'test', 'width=300,height=300');
  3. }
[HTML]<a href="#" onclick="open_window('your_url');">foo</a>[/HTML]
kind regards
Nov 24 '07 #2

omerbutt
100+
P: 638
thanks 4 da help buddy .....;) it solved ma prob
hi ...

first add a closing </a> and next use the onclick handler of the anchor-tag to call a function that uses the window.open(); method to open a popup window ... example:

Expand|Select|Wrap|Line Numbers
  1. function open_window(url) {
  2.     window.open(url, 'test', 'width=300,height=300');
  3. }
[HTML]<a href="#" onclick="open_window('your_url');">foo</a>[/HTML]
kind regards
Nov 25 '07 #3

gits
Expert Mod 5K+
P: 5,390
:) glad to hear that ... post back to the forum anytime you have more questions ...

kind regards
Nov 26 '07 #4

omerbutt
100+
P: 638
sure sir any time :)
:) glad to hear that ... post back to the forum anytime you have more questions ...

kind regards
Nov 26 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.