473,413 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

popup window in verticle menu

omerbutt
638 512MB
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
4 1365
gits
5,390 Expert Mod 4TB
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
638 512MB
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
5,390 Expert Mod 4TB
:) glad to hear that ... post back to the forum anytime you have more questions ...

kind regards
Nov 26 '07 #4
omerbutt
638 512MB
sure sir any time :)
:) glad to hear that ... post back to the forum anytime you have more questions ...

kind regards
Nov 26 '07 #5

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

Similar topics

6
by: Mica Cooper | last post by:
Hi, I have a series of Select menus on a page. I am trying to allow the user to click on the Select title and have it popup a help window. This works fine with the following code except that all...
2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
9
by: john | last post by:
In Paradox I was able to create popup menu's in which some of the items had popup menu's themselves. I've looked for threads on popup menu's and access but I can't find how to make a simple popup...
1
by: sjsean | last post by:
In an asp page I have the following scenario happening (or would like to happen) person picks a menu item in main page which opens a popup window that allows customization of that menu item. ...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.