| | #1 |
| Super Warrior War Room Member Join Date: 2006 Location: Singapore
Posts: 325
Thanks: 56
Thanked 8 Times in 7 Posts
|
How do I prevent MS Frontpage from changing my code? I pasted a tracking code from Bing Ads onto my page. But when I use MS Frontpage to edit it, the code changes. Original code = <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag Changed code = <script id="mstag_tops" type="text/javascript" src="file://flex.msn.com/mstag MS Frontpage automatically adds the "file" word into code code. How can I prevent it from doing that? This is the original tracking code I placed before the </body> tag of my page: Code: <script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.msn.com/mstag/site/1c68d240-7d70-4f9c-860f-43c891573b07/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2646176",type:"1",actionid:"182453"})</script> <noscript> <iframe src="//flex.msn.com/mstag/tag/1c68d240-7d70-4f9c-860f-43c891573b07/analytics.html?dedup=1&domainId=2646176&type=1&actionid=182453" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript> Code: <script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script>
<script id="mstag_tops" type="text/javascript" src="file://flex.msn.com/mstag/site/1c68d240-7d70-4f9c-860f-43c891573b07/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"2646176",type:"1",actionid:"182453"})</script> <noscript>
<iframe src="//flex.msn.com/mstag/tag/1c68d240-7d70-4f9c-860f-43c891573b07/analytics.html?dedup=1&domainId=2646176&type=1&actionid=182453" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe></noscript> |
| Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com | |
| |
| | #2 |
| Active Warrior War Room Member Join Date: 2011
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
|
Even in the early 2000's it was widely accepted that frontpage is a terrible solution for webpages because of the generated code. Just look for a free html wyziwyg editor. there are tons of them that don't generate extra code in your behalf. PS. many things have changed since 2002, like internet explorer is not longer the biggest browser and I wouldn't be suprised if frontpage has several IE specific implementations in it. Be carefull when using frontpage, or better yet, don't use it at all! hope this helps |
| | |
| |
| The Following User Says Thank You to neutralhatter For This Useful Post: |
| | #3 |
| Advanced Warrior War Room Member Join Date: 2006 Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
|
Agreed. Don't use Front Page -- it's awful. The code it spits out is very old and non-standards-compliant, which means that the webpages are not going to look/function correctly in many modern browsers. If you already know how to code, then you can't go wrong with a good, basic HTML editor like Notepad++, Netbeans, Sublime Text, etc. If you're set on using a WYSIWYG editor, then at least use one that outputs standards-compliant code, like a modern version of Dreamweaver. There are some free WYSIWYG editors out there too, but all the ones I've tried in the past weren't all that great. It's been a while since I've tried one though, so there may be a decent one out there now -- I don't know. You could try Google'ing "HTML5 WYSIWYG editor free", and see what pops up. Anything that supports HTML5 should be fairly decent. |
| | |
| |
| The Following User Says Thank You to Brandon Tanner For This Useful Post: |
| | #4 | |
| Super Warrior War Room Member Join Date: 2006 Location: Singapore
Posts: 325
Thanks: 56
Thanked 8 Times in 7 Posts
|
| |
| Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com | ||
| |
| | #5 |
| Active Warrior War Room Member Join Date: 2011
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
|
since you are in the microsoft atmosphere I would recommend WebMatrix it's also from microsoft like frontpage, but it's updated and Free. |
| | |
| |
| | #6 |
| HyperActive Warrior Join Date: 2010 Location: NY
Posts: 110
Thanks: 5
Thanked 10 Times in 9 Posts
|
Wow, when I saw this post I thought I was in a time warp but now I remember how bad Front Page was ten years ago. Check out Dreamweaver, it's big improvement over FP.
|
| |
| | #7 |
| Software Engineer War Room Member Join Date: 2008 Location: Asheville, NC USA
Posts: 693
Thanks: 37
Thanked 112 Times in 100 Posts
|
Haha, I had no idea Frontpage was even available any more! MS hasn't supported this product for years. Dreamweaver is fine, though a bit bloated in my opinion, but if you want a free product there are plenty of alternatives listed above, like Notepad++, or Netbeans. If you REALLY need preview mode, Dreamweaver is probably best, but I warn you, relying on preview mode is generally bad, as it isn't guaranteed to match what is in a browser. Before you put things into production you need to preview in an actual browser, in fact several of them. Better yet, do your tweaks right in the browser, like with the Chrome Inspector, and paste your changes into your editor of choice. This is how most developers I know work, but it takes an essential understanding of the code to pull off. |
| I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs | |
| |
| | #8 |
| Advanced Warrior War Room Member Join Date: 2006 Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
|
I normally use either Notepad++ or Netbeans, depending on the project. I don't much care for the WYSIWYG editors, for several reasons.
|
| | |
| |
| | #9 |
| VIP Warrior War Room Member Join Date: 2011
Posts: 1,632
Thanks: 1,211
Thanked 952 Times in 497 Posts
|
Everyone loves to hate Microsoft software which is a boring and uninformed point of view. Front page is fine (for basic uses) - I use it all the time for small things (like building tables quickly) and from about Office 2003 - XP) onwards it doesn't change your code at all and actually produces nice clean code and is a great way to learn html. Just make sure that you're version of FrontPage is later than 2003 to avoid these kind of additions. I've been using it since about 2003 when they made changes to the way they write code and it's been fine since then. |
| |
| The Following User Says Thank You to Mr Bill For This Useful Post: |
| | #10 | |
| Super Warrior War Room Member Join Date: 2006 Location: Singapore
Posts: 325
Thanks: 56
Thanked 8 Times in 7 Posts
|
| |
| Discover The Greatest Secrets Of The Mind And Reality That Will Get You Anything You Desire, Almost Like Magic! Visit: http://www.MindReality.com | ||
| |
| | #11 |
| VIP Warrior War Room Member Join Date: 2011
Posts: 1,632
Thanks: 1,211
Thanked 952 Times in 497 Posts
| |
| |
| The Following User Says Thank You to Mr Bill For This Useful Post: |
| | #12 | |
| Active Warrior War Room Member Join Date: 2013
Posts: 48
Thanks: 0
Thanked 9 Times in 9 Posts
|
| |
| |
| | #13 | |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
- HTML Source Code Only - Preview Mode Only - or Both (Split screen) I am using it for over 10 years. If you want a lighter alternative, you can try Notepad 2 or Notepad++, but it does not have preview mode. | |
| | ||
| |
|
| Bookmarks |
| Tags |
| changing, code, frontpage, prevent |
| |