‎2012 Sep 18 6:48 AM
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!!!
‎2012 Sep 18 10:00 AM
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
‎2012 Sep 18 10:56 AM
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.