Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 14th, 2006, 12:35 AM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default div tag as link

So I've been trying to figure this out... I have a bunch of div tags (php generated from sql database.) and I want to make them so you can click anywhere in the div tag and it opens the link in a new window. This is all fine and dandy, but there is also a link IN the div tag that I want to do the SAME thing.

I got it to work just fine except when I use a normal link in the div tag it then opens 2 identical windows since there is one from the div tag using javascript (onclick) and the other from the link itself.

I tried making the link dead and have an onmouseover that changes the status to the link location (because yes this is important to me,) but the problem there is that the onMouseOver="status='blah.htm'" doesnt work for firefox (yes i put in the: return true;)

So I guess the real question is.. how can I make a link out of a div tag w/o javascript - OR - how do I make the div javascript disabled when i click the hyperlink? if i can..

If you need more information to make sense of all this let me know, and thanks for the help.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to loop through a div tag? Byock Classic ASP Basics 0 December 19th, 2006 02:52 AM
stop writing in Div tag Samikaraeen HTML Code Clinic 2 April 9th, 2006 01:29 AM
DIV TAG marclena ASP.NET 1.0 and 1.1 Professional 2 May 24th, 2005 11:14 AM
XSLT incorrectly closing my div tag Blaise XML 2 June 2nd, 2004 07:56 AM

All times are GMT -4. The time now is 03:03 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.