Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open window without addressbar using href

Former Member
0 Likes
3,382

Requirement

Send a mail to employee with one link.
On clicking those link new window opens the url without address bar.


Problem

I have written following code to open link in a window without address bar, status bar,etc.
in body of email in html

<a href="#" onclick=window.open(''http://www.google.com'',null,"toolbar=no,menubar=no,location=no,titlebar=no,width=300,height=300")>Google</a>

I also tried all possible options with javascript,also javascripts and pop ups were enable.
It works fine in SOST but it doesnot working emails I get in browsers of mobile and desktop.

I dont want user to see the address bar.

please suggest me some solution for it or any other approach.

Thanks!!!

2 REPLIES 2
Read only

Former Member
0 Likes
1,455

Hi Purvang,

Why dont you try Iframe tag instead of <a> tag?

<html>
<body>
<iframe src = "http://www.w3schools.com" width="1400" height="650">

</iframe>
</body>
</html>

Regards,

R

Read only

0 Likes
1,455

Hi Rudra ,

thanks for the answer

I tried with iframe it works properly in SOST but it is not appearing in mail .

The problem is the HTML content changes in mail as compared to that in SOST

In sost the html content is as follows:

<html>
<body>
<iframe src = "http://www.w3schools.com" width="100" height="100">

</iframe>
</body>
</html>

while in mail(GMAIL) the iframe is not rendered it is just as below

<html>
<body>
</body>
</html>

similarly the javascript also disappears in the mail.

Is it possible some other way ?

I dont think we can control the way HTML page is being rendered in the mail.