In learning this, he asked me if it was possible to set a minimum size limit. I responded, "probably, I'll see what I can do."
After about twenty minutes of trying different things such as: browse(,"window=Window;size=300x300") when the window got to small, I began to get irritated.
So, in desperation, I tried something that I really didn't think would work...
mob/verb/Open_Window()
src<<browse({"
<script type="text/javascript">
window.onresize = function(event) {
var iW=document.documentElement.clientWidth;
var iH=document.documentElement.clientHeight;
var resize;
if(iW<400){iW=400;resize=1;}
if(iH<400){iH=400;resize=1;}
if(resize){window.location="?resizeFM="+iW+"x"+iH+";";return false;}
}
</script>
"},"window=Window")
client/Topic(anything,href[])
if("resizeFM" in href)
winset(src,"Window","is-disabled=true;")
winset(src,"Window","size=[href["resizeFM"]];")//a notable ability
spawn(1)
winset(src,"Window","is-disabled=false;")
The script clearly displays DM's ability to alter browser windows that were started using browse(). I personally had no idea this was possible, and was enthusiastic about it. In the highlight of my glory and thrill of the new discover I made (for myself at least), I explained to him my findings. Needless to say I was not at all thrilled when he replied, "could care less."
On a serious note, did anyone else know you could use winset on browsers started with browse("","window=")?
Of course, showing this doesn't prove that I knew this, but here it is anyway.
DM Reference (browse proc):