How to insert frames in .hta file?

Dear Experts
I have a Demo which has
html index file which has frames.Left frame has menu / contents and right frame displays the indexed content. If I convert this index file to hta extension, it does not support frames and clicked content opens in another window.
I want  to open the demo in web-browser without address-bar,tolbar, etc.
Please help
Regards
rmajay
rmajayAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
TakedaTConnect With a Mentor Commented:
Generally, you should ask all parts to your question in the original question.  But here is what you need.  Drop your .ico file in the directory with the .hta file and add the following code changing line 5 to reflect what the filename is.
<html>
<head><title>Tour</title>
<HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="myApp"
    ICON="youricon.ico" 
   >
</head>

<frameset cols=170,* border=1 frameBorder=1 frameSpacing=1>
<frame src=menu.html name="left" Resize=auto application="yes">
<frame src=hi.html name="tgt" Resize=auto application="yes">

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

Open in new window

0
 
rg20Commented:
To remove toolbars etc try
<javascript>

window.open("some url", "mainWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=1011,height=710");
</javascript>
0
 
TakedaTCommented:
Could you post your code?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
rmajayAuthor Commented:
Dear rq20
I could not figure out this javascript code.
I am uploading file hta work.zip
Pl see if it fits in
Regards
hta-work.zip
0
 
rmajayAuthor Commented:
Dear TakedaT
I am uploading file hta work.zip.
I await your comments
Regards
rmajay
hta-work.zip
0
 
rmajayAuthor Commented:
I am giving below HTML as some file-type mismatch is there
HERE GOES
<html>
<head><title>Tour</title>

//tour.html//
</head>

<frameset cols=170,* border=1 frameBorder=1 frameSpacing=1>
<frame src=menu.html name="left" Resize=auto>
<frame src=hi.html name="tgt" Resize=auto>

</frameset>
< body >
</body>
</html>
//menu.html
<html>
<head>
</head>
<body >
<table >
<tr align=center>
<td align=center><FONT face="Verdana,sans-serif,Helvetica,Arial" color=#008080
  Size=2><b>Contents</b></font></td>
</tr>
</table>
<TABLE>
<td  align=top><FONT face="Verdana,sans-serif,Helvetica,Arial" color=#008080
  size=-2>

<a href=hi.html target="tgt">Hi</a><br><br>
<a href=hello.html target="tgt">Hello</a><br><br>

</font></td>
</tr>
</table>
</body>
//hi.html
<html><head></head>
<body>
<p>
HI
</p>
</body>
</html>
//hello.html
<html><head></head>
<body>
<p>
Hello
</p>
</body>
</html>
Remarks
tour.html works fine, now change it to tour.hta and frames do not work
Regards
0
 
TakedaTCommented:
Use this code in your tour.hta file.  Simply adding  application="yes"  to each frame should make it open them inside the hta instead of a new window.
<html>
<head><title>Tour</title>

</head>

<frameset cols=170,* border=1 frameBorder=1 frameSpacing=1>
<frame src=menu.html name="left" Resize=auto application="yes">
<frame src=hi.html name="tgt" Resize=auto application="yes">

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

Open in new window

0
 
rmajayAuthor Commented:
Dear TakedaT
I am very thankful for your comment
Best Regards
rmajay
0
 
TakedaTCommented:
No problem.  Did it fix your problem?  If so, can you close the question?
0
 
rmajayAuthor Commented:
Dear TakedaT

Yes it did fix the problem. Am I allowed to ask more here.
I have a page.html webpage without frames.When i change it to page.hta I see complete address / location on the titlebar of hta page. I want to see only title and not the path.
How to replace the icon on hta titlebar or make it disappear

With Best Regards
rmajay
0
 
rmajayAuthor Commented:
Dear TakedaT
I got answer to first part of above question by putting title tag inside <head> </head>. The problem remains is how to replace the icon on hta page titlebar.
I am looking forward to your repy
Regards
rmajay
0
 
rmajayAuthor Commented:
DEAR EE
I AM HAPPY I JOINED EXPERTS EXCHANGE
rmajay
0
All Courses

From novice to tech pro — start learning today.