Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Opening a link in existing browser

 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have a doubt in opening a URL in a browser. It goes like this
1) Assume that there is a browser window open say http://cricifo.com
2) I have a link say http://www.google.com in a mail on Click of this link
I need to open google in the same window of cricinfo


Can anyone plz let me know what should I do to get this?
[ February 23, 2006: Message edited by: Srinivasa Raghavan ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can set the name of the window in window.open(). Second parameter.
If you pass the same name to the link, it will open in the same window.

To pass the name of the window to your <a> link, use the "target" attribute.
[ February 23, 2006: Message edited by: Satou kurinosuke ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am assuming you are talking about mailto:. If so keep reading...

you can open up the browser, but I do not think you are going to be able to use mailto: with it. That function of mailto: is determined by the browser and not the web page.

If you want to send mail the only real way is to add a serverside functionality.

Eric
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic