473,378 Members | 1,451 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,378 software developers and data experts.

How to prevent a new browser window from opening

I'm creating a site for the village where I live: www.nutteln.de. On
the "Postermuseum" page, I have a link "Weitere Poster", which should
insert new content on the page. However, clicking the link opens a new
browser window. How should I amend the code to load new content into
the existing page? Thanking you in advance for your help!
John
Apr 11 '08 #1
2 2927
On 11 Apr, 09:28, visi...@soon.com wrote:
I have a link "Weitere Poster", which should
insert new content on the page. However, clicking the link opens a new
browser window. How should I amend the code to load new content into
the existing page?
Replace
<a href="http://..." target="_blank">

with
<a href="http://..." >

You're also using frames which might make things more complicated
(don't use frames!). Without target, the link will open in the same
window. You might require it to open in the same frame instead, in
which case still keep
<a href="http://..." target="name-of-the-target-frame" >

Where the frames name is set in the name attribute of the relevant
frame
<frame name="name-of-the-frame" >
Apr 11 '08 #2
On Apr 11, 12:48*pm, Andy Dingley <ding...@codesmiths.comwrote:
On 11 Apr, 09:28, visi...@soon.com wrote:
I have a link "Weitere Poster", which should
insert new content on the page. However, clicking the link opens a new
browser window. How should I amend the code to load new content into
the existing page?

Replace
* * <a href="http://..." target="_blank">

with
* * <a href="http://..." >

You're also using frames which might make things more complicated
(don't use frames!). Without target, the link will open in the same
window. You might require it to open in the same frame instead, in
which case still keep
* * <a href="http://..." target="name-of-the-target-frame" >

Where the frames name is set in the name attribute of the relevant
frame
* * <frame name="name-of-the-frame" >
Thanks for your rapid reply Andy - problem solved!
Best wishes,
John
Apr 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob Murdoch | last post by:
I've got an intranet application that presents a list of files in sort of a 'central repository' web page. Each file is an href in the form <a href=file://server/share/path/filename.ext>. When...
11
by: danny | last post by:
Is there a way I can prevent the browser window from being closed? I'd like to make sure the browser window only closes programatically (I want to make sure the user enters data before moving on)....
10
by: Simon Wigzell | last post by:
Is there any way to create and open a window in javascript so that links in other websites won't "steal" it? I've written a web page with a form for people to enter headlines and URLs from...
4
by: AJS | last post by:
I open a small window with no toolbars and position it in the corner of the screen. My problem is that when this window was the last window opened, Windows will use it to open any link that I...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
2
by: Novice | last post by:
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window But default if I do the Response.Write("..." The output...
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
3
by: sohan | last post by:
hi I have hyperlink column in a datagrid. The column contains the name of a text file. I am able to appendthe full path of the file. The file is on D drive on the server. But on clicking on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.